+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
+Tue Jun 30 14:30:37 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkrc.c: fixed lookup order for rc styles. the latest defined
+ rc set pattern is favoured, this is needed for overriding of style
+ patterns with subsequently parsed rc files.
+
Tue Jun 30 12:45:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c: code overhaul for simplicity and more descriptive
(button3-mask GDK_BUTTON3_MASK)
(button4-mask GDK_BUTTON4_MASK)
(button5-mask GDK_BUTTON5_MASK)
+ (release-mask GDK_RELEASE_MASK)
(modifier-mask GDK_MODIFIER_MASK))
(define-enum GdkSubwindowMode
gtk_pattern_spec_init (&rc_set->pspec, pattern);
rc_set->rc_style = rc_style;
- gtk_rc_sets_widget = g_slist_append (gtk_rc_sets_widget, rc_set);
+ gtk_rc_sets_widget = g_slist_prepend (gtk_rc_sets_widget, rc_set);
}
void
gtk_pattern_spec_init (&rc_set->pspec, pattern);
rc_set->rc_style = rc_style;
- gtk_rc_sets_widget_class = g_slist_append (gtk_rc_sets_widget_class, rc_set);
+ gtk_rc_sets_widget_class = g_slist_prepend (gtk_rc_sets_widget_class, rc_set);
}
static void
return G_TOKEN_STRING;
}
- gtk_rc_sets_widget = g_slist_append (gtk_rc_sets_widget, rc_set);
+ gtk_rc_sets_widget = g_slist_prepend (gtk_rc_sets_widget, rc_set);
return G_TOKEN_NONE;
}
return G_TOKEN_STRING;
}
- gtk_rc_sets_widget_class = g_slist_append (gtk_rc_sets_widget_class, rc_set);
+ gtk_rc_sets_widget_class = g_slist_prepend (gtk_rc_sets_widget_class, rc_set);
return G_TOKEN_NONE;
}
{ GDK_BUTTON3_MASK, "GDK_BUTTON3_MASK", "button3-mask" },
{ GDK_BUTTON4_MASK, "GDK_BUTTON4_MASK", "button4-mask" },
{ GDK_BUTTON5_MASK, "GDK_BUTTON5_MASK", "button5-mask" },
+ { GDK_RELEASE_MASK, "GDK_RELEASE_MASK", "release-mask" },
{ GDK_MODIFIER_MASK, "GDK_MODIFIER_MASK", "modifier-mask" },
{ 0, NULL, NULL }
};
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>
-# testgtkrc2 introduces the green color in the button list
-
+# testgtkrc2 sets all the buttons in the main window to blue by default
include "testgtkrc2"
pixmap_path "."
bg_pixmap[NORMAL] = "<parent>"
}
-style "button"
+style "button" = "default"
{
# fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
# bg[PRELIGHT] = { 0, 0, 0.75 }
-}
-
-# we set all the buttons in the main window to be blue by default
-style 'main_buttons' = 'button'
-{
- font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
- bg[PRELIGHT] = { 0, 0, 0.75 }
+# bg[PRELIGHT] = { 0.75, 0, 0x00 }
}
style "toggle_button" = "button"
fg[NORMAL] = { 58000, 0, 0 } # red
}
+# override testgtk2, introduce the green color in the button list
+style 'button_list' = 'button'
+{
+ font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
+ bg[PRELIGHT] = { 0, 0.75, 0x00 }
+}
+widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
+
+widget_class "*" style "default"
widget_class "GtkWindow" style "window"
widget_class "GtkDialog" style "window"
widget_class "GtkFileSelection" style "window"
widget_class "*GtkButton*" style "button"
widget_class "*Ruler" style "ruler"
widget_class "*GtkText" style "text"
-widget_class "*" style "default"
-widget "main window.*GtkButton*" style "main_buttons"
widget "*GtkCurve" style "curve"
# this file gets included from testgtkrc
-style 'button_list' = 'button'
+style 'main_buttons' = 'button'
{
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
- bg[PRELIGHT] = { 0, 0.75, 0x00 }
+ bg[PRELIGHT] = { 0, 0, 0.75 }
}
-widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
+widget "main window.*GtkButton*" style "main_buttons"
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>
-# testgtkrc2 introduces the green color in the button list
-
+# testgtkrc2 sets all the buttons in the main window to blue by default
include "testgtkrc2"
pixmap_path "."
bg_pixmap[NORMAL] = "<parent>"
}
-style "button"
+style "button" = "default"
{
# fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
# bg[PRELIGHT] = { 0, 0, 0.75 }
-}
-
-# we set all the buttons in the main window to be blue by default
-style 'main_buttons' = 'button'
-{
- font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
- bg[PRELIGHT] = { 0, 0, 0.75 }
+# bg[PRELIGHT] = { 0.75, 0, 0x00 }
}
style "toggle_button" = "button"
fg[NORMAL] = { 58000, 0, 0 } # red
}
+# override testgtk2, introduce the green color in the button list
+style 'button_list' = 'button'
+{
+ font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
+ bg[PRELIGHT] = { 0, 0.75, 0x00 }
+}
+widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
+
+widget_class "*" style "default"
widget_class "GtkWindow" style "window"
widget_class "GtkDialog" style "window"
widget_class "GtkFileSelection" style "window"
widget_class "*GtkButton*" style "button"
widget_class "*Ruler" style "ruler"
widget_class "*GtkText" style "text"
-widget_class "*" style "default"
-widget "main window.*GtkButton*" style "main_buttons"
widget "*GtkCurve" style "curve"
# this file gets included from testgtkrc
-style 'button_list' = 'button'
+style 'main_buttons' = 'button'
{
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
- bg[PRELIGHT] = { 0, 0.75, 0x00 }
+ bg[PRELIGHT] = { 0, 0, 0.75 }
}
-widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
+widget "main window.*GtkButton*" style "main_buttons"